package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;


/**
 * 职业食谱
 * 数据库通用操作实体类（普通增删改查）
 * @author 
 * @email 
 * @date 2022-04-07 13:46:15
 */
@TableName("zhiyeshipu")
public class ZhiyeshipuEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public ZhiyeshipuEntity() {
		
	}
	
	public ZhiyeshipuEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 主键id
	 */
	@TableId
	private Long id;
	/**
	 * 食谱名称
	 */
					
	private String shipumingcheng;
	
	/**
	 * 职业类型
	 */
					
	private String zhiyeleixing;
	
	/**
	 * 食谱封面
	 */
					
	private String shipufengmian;
	
	/**
	 * 简介
	 */
					
	private String jianjie;
	
	/**
	 * 功效介绍
	 */
					
	private String gongxiaojieshao;
	
	/**
	 * 做法介绍
	 */
					
	private String zuofajieshao;
	
	/**
	 * 最近点击时间
	 */
				
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat 		
	private Date clicktime;
	
	/**
	 * 点击次数
	 */
					
	private Integer clicknum;
	
	
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;
	/**
	 * 是否付费
	 */
	private Integer ispay;

	/**
	 * 价格
	 */
	private BigDecimal price;

	/**
	 * 设置：是否付费
	 */
	public void setIspay(Integer ispay) {
		this.ispay = ispay;
	}
	/**
	 * 获取：是否付费
	 */
	public Integer getIspay() {
		return ispay;
	}

	/**
	 * 设置：价格
	 */
	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	/**
	 * 获取：价格
	 */
	public BigDecimal getPrice() {
		return price;
	}
	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 设置：食谱名称
	 */
	public void setShipumingcheng(String shipumingcheng) {
		this.shipumingcheng = shipumingcheng;
	}
	/**
	 * 获取：食谱名称
	 */
	public String getShipumingcheng() {
		return shipumingcheng;
	}
	/**
	 * 设置：职业类型
	 */
	public void setZhiyeleixing(String zhiyeleixing) {
		this.zhiyeleixing = zhiyeleixing;
	}
	/**
	 * 获取：职业类型
	 */
	public String getZhiyeleixing() {
		return zhiyeleixing;
	}
	/**
	 * 设置：食谱封面
	 */
	public void setShipufengmian(String shipufengmian) {
		this.shipufengmian = shipufengmian;
	}
	/**
	 * 获取：食谱封面
	 */
	public String getShipufengmian() {
		return shipufengmian;
	}
	/**
	 * 设置：简介
	 */
	public void setJianjie(String jianjie) {
		this.jianjie = jianjie;
	}
	/**
	 * 获取：简介
	 */
	public String getJianjie() {
		return jianjie;
	}
	/**
	 * 设置：功效介绍
	 */
	public void setGongxiaojieshao(String gongxiaojieshao) {
		this.gongxiaojieshao = gongxiaojieshao;
	}
	/**
	 * 获取：功效介绍
	 */
	public String getGongxiaojieshao() {
		return gongxiaojieshao;
	}
	/**
	 * 设置：做法介绍
	 */
	public void setZuofajieshao(String zuofajieshao) {
		this.zuofajieshao = zuofajieshao;
	}
	/**
	 * 获取：做法介绍
	 */
	public String getZuofajieshao() {
		return zuofajieshao;
	}
	/**
	 * 设置：最近点击时间
	 */
	public void setClicktime(Date clicktime) {
		this.clicktime = clicktime;
	}
	/**
	 * 获取：最近点击时间
	 */
	public Date getClicktime() {
		return clicktime;
	}
	/**
	 * 设置：点击次数
	 */
	public void setClicknum(Integer clicknum) {
		this.clicknum = clicknum;
	}
	/**
	 * 获取：点击次数
	 */
	public Integer getClicknum() {
		return clicknum;
	}

}
